/**
 * 
 */
package com.gooex.service.base.exception;

/**
 * 常量类，提供异常的异常码 异常码：100000001
 * 
 * @author Adonis
 */
public final class ExceptionCode {

	/* System Exception (start with 0) */
	/** ========================= */
	/** 非法操作 */
	public static final String OPERATION_NOT_ALLOWED = "000000001";

	/** 调用非法 */
	public static final String SYSTEM_INVOKE_ERROR = "000000002";

	/** 系统正忙，请稍后再试 */
	public static final String SYSTEM_BUSY_ERROR = "000000003";

	/** 系统访问错误 */
	public static final String SYSTEM_ACCESS_ERROR = "000000004";

	/* Application Exception */
	/** ========================= */

	/* --------------Product Exception (start with 1)----------------------- */
	/** 用户不存在 */
	public static final String USER_NOT_EXISTS = "100000006";

	public static final String USER_NO_COMPANY = "100000007";

	/* --------------Product Exception (start with 2)----------------------- */
	/** 类别id为空 */
	public static final String CATEGORY_ID_NULL = "200000001";

	/** 分类不存在 */
	public static final String CATEGORY_NOT_EXISTS = "200000004";

	/* --------------Product Exception (start with 3)----------------------- */
	/** 商品不存在 */
	public static final String PRODUCT_NOT_EXISTS = "300000001";

	/** 商品参数值不存在 */
	public static final String PROPERTY_VALUE_NOT_EXISTS = "300000002";

	/* --------------Product Exception (start with 4)----------------------- */

	/** 订单不存在 */
	public static final String ORDER_NOT_EXISTS = "400000001";

	/** 订单不处于已保存状态 */
	public static final String ORDER_STATUS_NOT_SAVED = "400000002";

	/** 对于已经确认、取消、关闭的订单，不能加入 */
	public static final String NOT_INVITING_ORDER = "400000003";

	/** 用户订单请求不存在 */
	public static final String ORDER_REQUEST_NOT_EXISTS = "400000004";

	/** 订单序列号产生错误 */
	public static final String ORDER_CODE_GENERATE_ERROR = "400000005";

	/** 订单已经被取消 */
	public static final String ORDER_HAS_CANCELED = "400000006";

	/** 不允许加入 */
	public static final String ORDER_JOIN_NOT_ALLOW = "400000006";

	/** 订单状态不能够更新 */
	public static final String ORDER_STATUS_CHANGE_ERROR = "400000007";

	/** 未设置地址 */
	public static final String ORDER_CUSTOMER_NO_ADDRESS = "400000008";

	public static final String ORDER_CUSTOMER_REGION_LIMITED = "400000009";

	public static final String ORDER_VENDOR_REGION_LIMITED = "400000010";

	/* --------------Company Exception (start with 5)----------------------- */
	/** 公司信息不存在 */
	public static final String COMPANY_NOT_EXISTS = "500000001";

	/** 公司资料未审核 */
	public static final String COMPANY_NOT_ACCREDITED = "500000002";

}
